// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import Api from './api';
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI);
// Vue.prototype.$api = Api;
Vue.config.productionTip = false

//css
import 'css/reset.css'
import 'font/iconfont.css'
//js
import FastClick from 'fastclick'
FastClick.attach(document.body);

import VueAwesomeSwiper from 'vue-awesome-swiper'
  import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)


//axios
import axios from 'axios'
// axios.defaults.withCredentials=true//配置请求时保存session信息
axios.defaults.baseURL = 'http://127.0.0.1:4000/' //服务器请求路径
Vue.prototype.axios=axios


//vuex
import store from './store'
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App),
  components: { App },
  template: '<App/>'
})
